import math

def mass(pho,d,l):
    return pho*l*d**2/4*math.pi

def calc(m,d,l):
    r = d/2
    Ip = 1/2*m*r**2
    Id = m*(r**2/4+l**2/12)
    result = f'The moment of inertia Ip:{Ip}\nthe diametral moments of inertia:{Id}'
    return result


m = mass(7850,1,1)
print(m)
print(calc(m,1,1))
print('='*20)
m = mass(7850,1,2)
print(m)
print(calc(m,1,2))